home *** CD-ROM | disk | FTP | other *** search
- Program test;
- {$D+,L+}
- Uses Globals,Btrv,Btrv_IO,CPU_OBJ,PEC_OBJ;
-
- VAR
- PCPU : PtrCPU;
- CPU : TCPU;
- PPiece : PtrPiece;
- Piece : TPiece;
- SomePosition : LongInt;
-
- Procedure CreateCPURecord;
- Begin
- With PCPU^.Fld do
- begin
- Name := 'Miller, Steve';
- Location := 'X25';
- Dept := 52;
- SysNum := '12354';
- AssetNum := '897359';
- SysMfg := 'Datel';
- SerNum := '5432-234-234';
- SysType := '386';
- SysSpeed := '33mh';
- BiosMfg := 'Asian Rim';
- BiosVer := 'v.3.45';
- RAMSize := '4meg';
- RamType := 'Sims';
- RamSpeed := '22ns';
- Status := 'In house';
- DatePur := 0;
- Invoice := '9494949';
- Vendor := 'Joes Computer World';
- Price := 234;
- Note1 := 'THis is the winder of our discontent';
- Note2 := 'So it goes, so it goes';
- end;
- end;
-
- Procedure CreatePieceRecord;
- Begin
- With PPiece^.Fld do
- begin
- Component := 'Keyboard';
- CompNum := 'X25';
- SerNum := '123-123-432';
- CompMfg := 'Keytronic';
- CompModel := '120 Key';
- CompType := 'KeyBoard';
- CompSize := '120 key';
- Status := 'In House';
- AssetNum := '595959';
- DatePur := 0;
- Vendor := 'Datel Inc';
- Invoice := '483984';
- Price := 456.55;
- SysNum := '9878234';
- Note1 := 'This is the Notes1 field';
- Note2 := 'THis is the Notes2 field';
- end;
- end;
-
- Procedure ModifyCPURecord;
- Begin
- With PCPU^.Fld do
- begin
- Name := 'Miller, Steve';
- end;
- end;
-
- begin
- New(PCpu,Init);
- Status := PCpu^.OpenFile('D:\BT\CPU.DMF',0);
-
- Status := PCpu^.StepFirst;
- Status := PCpu^.StepLast;
- Status := PCpu^.StepFirst;
- Status := PCpu^.StepNext;
- Status := PCpu^.StepNext;
- Status := PCpu^.StepPrevious;
- Status := PCpu^.StepPrevious;
- Status := PCpu^.GetFirst(0);
- Status := PCpu^.GetPosition(SomePosition);
- Status := PCpu^.GetNext;
- Status := PCpu^.GetNext;
- Status := PCpu^.GetNext;
- Status := PCpu^.GetDirect(SomePosition,0);
-
- Status := PCpu^.GetGr(('C'),0);
- Status := PCpu^.GetNext;
- Status := PCpu^.GetNext;
-
- Status := PCpu^.CloseFile;
-
- PCpu^.Done;
- end.